﻿<Window x:Class="BlobExplorer.AddBlob"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Add Blob" Height="224" Width="326">
    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>

        <Grid.Background>
            <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                <LinearGradientBrush.GradientStops>
                    <GradientStop Offset="0" Color="White"/>
                    <GradientStop Offset="1" Color="AliceBlue"/>
                </LinearGradientBrush.GradientStops>
            </LinearGradientBrush>
        </Grid.Background>

        <Label>File:</Label>
        <Label Grid.Row="1">Name: </Label>
        <Label Grid.Row="2">Metadata: </Label>
        <TextBox Grid.Column="1" Text="{Binding File}" Margin="3"/>
        <TextBox Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="2" Text="{Binding BlobName}" Margin="3"/>
        <Button Content="Browse" Grid.Column="2" Margin="3" Padding="2" Click="Browse_Click"/>
        <TextBox Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" AcceptsReturn="True" x:Name="metadata" ToolTip="Add each item of metadata on a separate line in the form key:value"/>
        

        <StackPanel Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Right" >
            <Button Content="OK" IsDefault="True" Click="OK_Click" Width="{Binding ElementName=cancel, Path=ActualWidth}" Padding="2" Margin="3"/>
            <Button Content="Cancel" IsCancel="True" x:Name="cancel" Padding="2" Margin="3"/>
        </StackPanel>

    </Grid>
</Window>
